<?php 
$type_arr = array(1=>"彩页",2=>"画册",3=>"手袋",4=>"名片");
$shipping_arr =  array("快递","物流","自取");
$status_arr = array(1=>"新订单",2=>"处理中",3=>"已完成");
//$ftp_arr = array("QQ在线传送","邮箱附件发送","FTP上传");
?>
<div id="msg"></div>
<?php $module_name = "OrderData"; ?>
<form name="myform" id="myform" action="<if condition="$action_name=='add'">{:U($module_name.'/insert')}<else />{:U($module_name.'/update')}</if>&iscreatehtml=1" method="post">
  <div id="filelist" class="hide"></div>
  <div class="error">
    <ul>
    </ul>
  </div>
  <table cellpadding=0 cellspacing=0 class="table_form" width="100%">
    <tr>
      <td width="10%" >订单编号</td>
      <td width="90%" ><input type="text"   class="input-text " name="order_id"  id="order_id" value="{$vo['order_id']}" size="60"  /></td>
    </tr>
    <tr>
      <td width="10%" >会员</td>
      <td width="90%" ><input type="text"   class="input-text " name="user_id"  id="user_id" value="{$vo['user_id']}" size="60"  /></td>
    </tr>
    <tr>
      <td width="10%" >分类</td>
      <td width="90%" id="status"><select id="cat_id" name="cat_id" onchange=""  class="" >
      <?php 
      
      foreach ($type_arr as $key => $value) {
        ?>
        <option value="<?php echo $key; ?>" <?php if($vo['cat_id']==$key){ ?>selected="selected"<?php } ?> ><?php echo $value; ?></option>
        <?php
      }
      ?>
        </select></td>
    </tr>
     <tr>
      <td width="10%" >数量</td>
      <td width="90%" ><input type="text"   class="input-text " name="number"  id="number" value="{$vo['number']}" size="60"  /></td>
    </tr>
     <tr>
      <td width="10%" >尺寸规格</td>
      <td width="90%" ><input type="text"   class="input-text " name="size"  id="size" value="{$vo['size']}" size="60"  /></td>
    </tr>
    <tr>
      <td width="10%" >尺寸规格2</td>
      <td width="90%" ><input type="text"   class="input-text " name="character"  id="character" value="{$vo['character']}" size="60"  /></td>
    </tr>
     <tr>
      <td width="10%" >材质</td>
      <td width="90%" ><input type="text"   class="input-text " name="material"  id="material" value="{$vo['material']}" size="60"  /></td>
    </tr>
     <tr>
      <td width="10%" >工艺</td>
      <td width="90%" ><input type="text"   class="input-text " name="technics"  id="technics" value="{$vo['technics']}" size="60"  /></td>
    </tr>
     <tr>
      <td width="10%" >P数</td>
      <td width="90%" ><input type="text"   class="input-text " name="pages"  value="{$vo['pages']}" size="60"  /></td>
    </tr>
     <tr>
      <td width="10%" >装订</td>
      <td width="90%" ><input type="text"   class="input-text " name="binding"  id="binding" value="{$vo['binding']}" size="60"  /></td>
    </tr>
     <tr>
      <td width="10%" >文件上传方式</td>
      <td width="90%" ><input type="text"   class="input-text " name="file_up_type"  id="file_up_type" value="{$vo['file_up_type']}" size="60"  /></td>
    </tr>
     <tr>
      <td width="10%" >文件名</td>
      <td width="90%" ><input type="text"   class="input-text " name="file_name"  id="file_name" value="{$vo['file_name']}" size="60"  /></td>
    </tr>
     <tr>
      <td width="10%" >收货人</td>
      <td width="90%" ><input type="text"   class="input-text " name="to_user"  id="to_user" value="{$vo['to_user']}" size="60"  /></td>
    </tr>
     <tr>
      <td width="10%" >联系电话</td>
      <td width="90%" ><input type="text"   class="input-text " name="to_phone"  id="to_phone" value="{$vo['to_phone']}" size="60"  /></td>
    </tr>
     <tr>
      <td width="10%" >收货地址</td>
      <td width="90%" ><input type="text"   class="input-text " name="to_address"  id="to_address" value="{$vo['to_address']}" size="60"  /></td>
    </tr>
     <tr>
      <td width="10%" >金额</td>
      <td width="90%" ><input type="text"   class="input-text " name="price"  id="price" value="{$vo['price']}" size="60"  /></td>
    </tr>
    <tr>
        <td width="10%" >备注</td>
        <td width="90%" id="comment">
        <textarea  class="" name="comment"  rows="4" cols="55"  id="comment"   />{$vo['comment']}</textarea>        </td>
      </tr>
       <tr>
        <td width="10%" >运输方式</td>
        <td width="90%" id="comment">
        <textarea  class="" name="shipping"  rows="4" cols="55"  id="shipping"   />{$vo['shipping']}</textarea>        </td>
      </tr>
      <!--
    <tr>
      <td width="10%" >运输方式</td>
      <td width="90%" id="shipping"><select id="shipping" name="shipping" onchange=""  class="" >
        <?php         
        foreach ($shipping_arr as $key => $value) {
          ?>
          <option value="<?php echo $value; ?>" <?php if($vo['shipping']==$value){ ?>selected="selected"<?php } ?> ><?php echo $value; ?></option>
          <?php
        }
        ?>
        </select></td>
    </tr>
  -->
  <tr>
      <td width="10%" >付款状态</td>
      <td width="90%" id="status">
      <textarea  class="" name="pay_status"  rows="4" cols="55"  id="pay_status"   /><?php echo $vo['pay_status']?$vo['pay_status']:"未付款"; ?></textarea>  
      </td>
    </tr>
    <tr>
      <td width="10%" >订单状态</td>
      <td width="90%" id="status">
        <select id="status" name="status" onchange=""  class="" >
          <?php           
          foreach ($status_arr as $key => $value) {
            ?>
            <option value="<?php echo $key; ?>" <?php if($vo['status']==$key){ ?>selected="selected"<?php } ?> ><?php echo $value; ?></option>
            <?php
          }
          ?>         
        </select></td>
    </tr>
  </table>
  <div id="bootline"></div>
  <div id="btnbox" class="btn">
    <if condition="$vo['id']!=''">
      <input TYPE="hidden" name="id" value="{$vo.id}">
    </if>
    <input type="hidden"  name="lang" value="{$langid}" />
    <input type="hidden" name="forward" value="{$_SERVER['HTTP_REFERER']}" />
    <INPUT TYPE="submit"  value="{:L('dosubmit')}" class="button" >
    <input TYPE="reset"  value="{:L('cancel')}" class="button">
  </div>
</form>
</div>
